package core;

public class Building {
	
	static List types = [
		'FARM', 'FACTORY', 'MINE', 'SOLAR_PLANT', 'STORE', 'MEDICAL_UNIT'
	]

	final type;
	int health = Settings.initialBuildingHealth
	
	public Building(theType) {
		if (! types.contains(theType)) {
			throw new Exception("Illegal building type: $theType")
		}
		type = theType
	}

}